<template>
  <div>
    <button @click="ToList(123456)">跳转到list1</button>
    <button @click="ToList1(654321)">跳转到home</button>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router";
const router = useRouter();

const ToList = (s) => {
  router.push(`/list1/${s}/${"冲冲冲"}/${"洒水车"}`);
};

const ToList1 = (s) => {
  router.push({
    name: "tima",
    params: {
      a: s,
      b: "xxxx",
      c: "vvs",
    },
  });
};
</script>

<style lang="scss" scoped>
</style>